package cn.stylefeng.guns.modular.storage.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.storage.entity.StorageStockManagement;
import cn.stylefeng.guns.modular.storage.model.params.StorageStockManagementParam;
import cn.stylefeng.guns.modular.storage.model.result.StorageStockManagementResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 存货处置记录 服务类
 */
public interface StorageStockManagementService extends IService<StorageStockManagement> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2022-01-26
     */
    void add(StorageStockManagementParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2022-01-26
     */
    void delete(StorageStockManagementParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2022-01-26
     */
    void update(StorageStockManagementParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2022-01-26
     */
    StorageStockManagementResult findBySpec(StorageStockManagementParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2022-01-26
     */
    List<StorageStockManagementResult> findListBySpec(StorageStockManagementParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2022-01-26
     */
     LayuiPageInfo findPageBySpec(StorageStockManagementParam param,String condition,Long operateId);

}
